<template>
  <!-- <button @click="$emit('btnEvent','123',{name:'ls'})">触发事件</button> -->
  <button @click="emitEvent">触发事件2</button>
</template>
<script setup>
// const emit = defineEmits(['btnEvent','demo'])
const emit = defineEmits({
  // 校验事件参数
  btnEvent:function(palyload,palyload2){
    console.log("palyload==>",palyload,palyload2);
    return true
  }
})

const emitEvent = ()=>{
  emit('btnEvent',123,['a','b','c'])
}
</script>